package com.wx.circulardependencies;

import org.springframework.beans.factory.annotation.Autowired;

public class A {

//	@Autowired
	private B b;

	public A() {
	}

	public A(B b) {
		this.b = b;
	}


	public B getB() {
		return b;
	}

	@Autowired
	public void setB(B b) {
		this.b = b;
	}

	public void invokeB() {
//		b.invokeA();
		B b = new B();
		b.invokeA();
	}
}
